\hypertarget{classTiXmlPrinter}{\section{\-Ti\-Xml\-Printer \-Class \-Reference}
\label{classTiXmlPrinter}\index{\-Ti\-Xml\-Printer@{\-Ti\-Xml\-Printer}}
}


{\ttfamily \#include $<$tinyxml.\-h$>$}

\-Inheritance diagram for \-Ti\-Xml\-Printer\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classTiXmlPrinter}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTiXmlPrinter_a799f4f0388570cbb54c0d3c345fef7c1}{virtual bool \hyperlink{classTiXmlPrinter_a799f4f0388570cbb54c0d3c345fef7c1}{\-Visit\-Enter} (const \hyperlink{classTiXmlDocument}{\-Ti\-Xml\-Document} \&doc)}\label{classTiXmlPrinter_a799f4f0388570cbb54c0d3c345fef7c1}

\begin{DoxyCompactList}\small\item\em \-Visit a document. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlPrinter_a66b33edd76c538b462f789b797a4fdf2}{virtual bool \hyperlink{classTiXmlPrinter_a66b33edd76c538b462f789b797a4fdf2}{\-Visit\-Exit} (const \hyperlink{classTiXmlDocument}{\-Ti\-Xml\-Document} \&doc)}\label{classTiXmlPrinter_a66b33edd76c538b462f789b797a4fdf2}

\begin{DoxyCompactList}\small\item\em \-Visit a document. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlPrinter_a0c5e7bf8622838417a0d0bfb8f433854}{virtual bool \hyperlink{classTiXmlPrinter_a0c5e7bf8622838417a0d0bfb8f433854}{\-Visit\-Enter} (const \hyperlink{classTiXmlElement}{\-Ti\-Xml\-Element} \&element, const \hyperlink{classTiXmlAttribute}{\-Ti\-Xml\-Attribute} $\ast$first\-Attribute)}\label{classTiXmlPrinter_a0c5e7bf8622838417a0d0bfb8f433854}

\begin{DoxyCompactList}\small\item\em \-Visit an element. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlPrinter_a1853cf2f6e63ad4b4232b4835e0acaf0}{virtual bool \hyperlink{classTiXmlPrinter_a1853cf2f6e63ad4b4232b4835e0acaf0}{\-Visit\-Exit} (const \hyperlink{classTiXmlElement}{\-Ti\-Xml\-Element} \&element)}\label{classTiXmlPrinter_a1853cf2f6e63ad4b4232b4835e0acaf0}

\begin{DoxyCompactList}\small\item\em \-Visit an element. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlPrinter_ace1b14d33eede2575c0743e2350f6a38}{virtual bool \hyperlink{classTiXmlPrinter_ace1b14d33eede2575c0743e2350f6a38}{\-Visit} (const \hyperlink{classTiXmlDeclaration}{\-Ti\-Xml\-Declaration} \&declaration)}\label{classTiXmlPrinter_ace1b14d33eede2575c0743e2350f6a38}

\begin{DoxyCompactList}\small\item\em \-Visit a declaration. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlPrinter_a711e7d65d4af9ec70977568d2451fb1c}{virtual bool \hyperlink{classTiXmlPrinter_a711e7d65d4af9ec70977568d2451fb1c}{\-Visit} (const \hyperlink{classTiXmlText}{\-Ti\-Xml\-Text} \&text)}\label{classTiXmlPrinter_a711e7d65d4af9ec70977568d2451fb1c}

\begin{DoxyCompactList}\small\item\em \-Visit a text node. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlPrinter_a83c13d6b980064b30f989f9a35498979}{virtual bool \hyperlink{classTiXmlPrinter_a83c13d6b980064b30f989f9a35498979}{\-Visit} (const \hyperlink{classTiXmlComment}{\-Ti\-Xml\-Comment} \&comment)}\label{classTiXmlPrinter_a83c13d6b980064b30f989f9a35498979}

\begin{DoxyCompactList}\small\item\em \-Visit a comment node. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlPrinter_ad2dca6dd106e8982fd3c7db1f3330970}{virtual bool \hyperlink{classTiXmlPrinter_ad2dca6dd106e8982fd3c7db1f3330970}{\-Visit} (const \hyperlink{classTiXmlUnknown}{\-Ti\-Xml\-Unknown} \&unknown)}\label{classTiXmlPrinter_ad2dca6dd106e8982fd3c7db1f3330970}

\begin{DoxyCompactList}\small\item\em \-Visit an unknown node. \end{DoxyCompactList}\item 
void \hyperlink{classTiXmlPrinter_a213377a4070c7e625bae59716b089e5e}{\-Set\-Indent} (const char $\ast$\-\_\-indent)
\item 
\hypertarget{classTiXmlPrinter_abb33ec7d4bad6aaeb57f4304394b133d}{const char $\ast$ \hyperlink{classTiXmlPrinter_abb33ec7d4bad6aaeb57f4304394b133d}{\-Indent} ()}\label{classTiXmlPrinter_abb33ec7d4bad6aaeb57f4304394b133d}

\begin{DoxyCompactList}\small\item\em \-Query the indention string. \end{DoxyCompactList}\item 
void \hyperlink{classTiXmlPrinter_a4be1e37e69e3858c59635aa947174fe6}{\-Set\-Line\-Break} (const char $\ast$\-\_\-line\-Break)
\item 
\hypertarget{classTiXmlPrinter_a11f1b4804a460b175ec244eb5724d96d}{const char $\ast$ \hyperlink{classTiXmlPrinter_a11f1b4804a460b175ec244eb5724d96d}{\-Line\-Break} ()}\label{classTiXmlPrinter_a11f1b4804a460b175ec244eb5724d96d}

\begin{DoxyCompactList}\small\item\em \-Query the current line breaking string. \end{DoxyCompactList}\item 
void \hyperlink{classTiXmlPrinter_ab23a90629e374cb1cadca090468bbd19}{\-Set\-Stream\-Printing} ()
\item 
\hypertarget{classTiXmlPrinter_a859eede9597d3e0355b77757be48735e}{const char $\ast$ \hyperlink{classTiXmlPrinter_a859eede9597d3e0355b77757be48735e}{\-C\-Str} ()}\label{classTiXmlPrinter_a859eede9597d3e0355b77757be48735e}

\begin{DoxyCompactList}\small\item\em \-Return the result. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlPrinter_ad01375ae9199bd2f48252eaddce3039d}{size\-\_\-t \hyperlink{classTiXmlPrinter_ad01375ae9199bd2f48252eaddce3039d}{\-Size} ()}\label{classTiXmlPrinter_ad01375ae9199bd2f48252eaddce3039d}

\begin{DoxyCompactList}\small\item\em \-Return the length of the result string. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlPrinter_a3bd4daf44309b41f5813a833caa0d1c9}{const std\-::string \& \hyperlink{classTiXmlPrinter_a3bd4daf44309b41f5813a833caa0d1c9}{\-Str} ()}\label{classTiXmlPrinter_a3bd4daf44309b41f5813a833caa0d1c9}

\begin{DoxyCompactList}\small\item\em \-Return the result. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Print to memory functionality. \-The \hyperlink{classTiXmlPrinter}{\-Ti\-Xml\-Printer} is useful when you need to\-:


\begin{DoxyEnumerate}
\item \-Print to memory (especially in non-\/\-S\-T\-L mode)
\item \-Control formatting (line endings, etc.)
\end{DoxyEnumerate}

\-When constructed, the \hyperlink{classTiXmlPrinter}{\-Ti\-Xml\-Printer} is in its default \char`\"{}pretty printing\char`\"{} mode. \-Before calling \-Accept() you can call methods to control the printing of the \-X\-M\-L document. \-After \hyperlink{classTiXmlNode_acc0f88b7462c6cb73809d410a4f5bb86}{\-Ti\-Xml\-Node\-::\-Accept()} is called, the printed document can be accessed via the \hyperlink{classTiXmlPrinter_a859eede9597d3e0355b77757be48735e}{\-C\-Str()}, \hyperlink{classTiXmlPrinter_a3bd4daf44309b41f5813a833caa0d1c9}{\-Str()}, and \hyperlink{classTiXmlPrinter_ad01375ae9199bd2f48252eaddce3039d}{\-Size()} methods.

\hyperlink{classTiXmlPrinter}{\-Ti\-Xml\-Printer} uses the \-Visitor \-A\-P\-I. \begin{DoxyVerb}
	TiXmlPrinter printer;
	printer.SetIndent( "\t" );

	doc.Accept( &printer );
	fprintf( stdout, "%s", printer.CStr() );
	\end{DoxyVerb}
 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{classTiXmlPrinter_a213377a4070c7e625bae59716b089e5e}{\index{\-Ti\-Xml\-Printer@{\-Ti\-Xml\-Printer}!\-Set\-Indent@{\-Set\-Indent}}
\index{\-Set\-Indent@{\-Set\-Indent}!TiXmlPrinter@{\-Ti\-Xml\-Printer}}
\subsubsection[{\-Set\-Indent}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Ti\-Xml\-Printer\-::\-Set\-Indent} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{\-\_\-indent}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classTiXmlPrinter_a213377a4070c7e625bae59716b089e5e}
\-Set the indent characters for printing. \-By default 4 spaces but tab () is also useful, or null/empty string for no indentation. \hypertarget{classTiXmlPrinter_a4be1e37e69e3858c59635aa947174fe6}{\index{\-Ti\-Xml\-Printer@{\-Ti\-Xml\-Printer}!\-Set\-Line\-Break@{\-Set\-Line\-Break}}
\index{\-Set\-Line\-Break@{\-Set\-Line\-Break}!TiXmlPrinter@{\-Ti\-Xml\-Printer}}
\subsubsection[{\-Set\-Line\-Break}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Ti\-Xml\-Printer\-::\-Set\-Line\-Break} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{\-\_\-line\-Break}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classTiXmlPrinter_a4be1e37e69e3858c59635aa947174fe6}
\-Set the line breaking string. \-By default set to newline (\par
). \-Some operating systems prefer other characters, or can be set to the null/empty string for no indenation. \hypertarget{classTiXmlPrinter_ab23a90629e374cb1cadca090468bbd19}{\index{\-Ti\-Xml\-Printer@{\-Ti\-Xml\-Printer}!\-Set\-Stream\-Printing@{\-Set\-Stream\-Printing}}
\index{\-Set\-Stream\-Printing@{\-Set\-Stream\-Printing}!TiXmlPrinter@{\-Ti\-Xml\-Printer}}
\subsubsection[{\-Set\-Stream\-Printing}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Ti\-Xml\-Printer\-::\-Set\-Stream\-Printing} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classTiXmlPrinter_ab23a90629e374cb1cadca090468bbd19}
\-Switch over to \char`\"{}stream printing\char`\"{} which is the most dense formatting without linebreaks. \-Common when the \-X\-M\-L is needed for network transmission. 

\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
include/tinyxml.\-h\end{DoxyCompactItemize}
